package com.ztk.threadbasic.service;

import com.ztk.threadbasic.result.ExcelResult;
import org.springframework.core.io.InputStreamResource;
import org.springframework.core.io.InputStreamSource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;

public interface ExcelService {

    ExcelResult uploadExcel(MultipartFile file);

    ResponseEntity<InputStreamResource> downloadExcel(HttpServletResponse response, String budgetAgency, String budgetDate);
}
